db_cache

Configuration for Af DB Cache enable resource.

Read/write properties

enable<Boolean>

DB cache enable value.

__count<Double>

Number of records.

reset<Boolean>

DB cache Reset value.

Operations

NOTE: In request payload, Mandatory parameters are marked red and bold.

The following parameters can be used in the nitro request :

onerror   <String_value>

Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE

addmodifyget (all)

add

URL:https://<MGMT-IP>/nitro/v2/config/db_cache?onerror=<String_value>

Query-parameters:

HTTPS Method:POST

HTTPS Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"db_cache": {
      "__count":<Double_value>,
      "reset":<Boolean_value>,
      "enable":<Boolean_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "db_cache":[{
      "enable":<Boolean_value>,
      "__count":<Double_value>,
      "reset":<Boolean_value>}]}

modify

URL:https://<MGMT-IP>/nitro/v2/config/db_cache/

Query-parameters:

HTTPS Method:PUT

HTTPS Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"db_cache":{
      "enable":<Boolean_value>,
      "__count":<Double_value>,
      "reset":<Boolean_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "db_cache":[{
      "enable":<Boolean_value>,
      "__count":<Double_value>,
      "reset":<Boolean_value>}]}

get (all)

URL:https://<MGMT-IP>/nitro/v2/config/db_cache

Query-parameters:

HTTPS Method:GET

HTTPS Request Headers:

Accept:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Headers:

Content-Type:application/json

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "db_cache":[{
      "enable":<Boolean_value>,
      "__count":<Double_value>,
      "reset":<Boolean_value>}]}